package com.jacobson.huobi.mvp.model

import com.alibaba.fastjson.JSONObject
import com.jacobson.core.di.annotation.ActivityScope
import com.jacobson.core.framework.repository.IRepositoryManager
import com.jacobson.core.mvp.BaseModel
import com.jacobson.huobi.api.VipRechargeApi
import com.jacobson.huobi.entities.response.CommonResponse
import com.jacobson.huobi.entities.vo.RechargeRecordVo
import com.jacobson.huobi.mvp.contract.AboutCeluerenContract
import com.jacobson.huobi.mvp.contract.EditPasswordContract
import com.jacobson.huobi.mvp.contract.RenevalMemberContract
import io.reactivex.Observable
import javax.inject.Inject

@ActivityScope
class RenevalMemberModel @Inject constructor(
    repositoryManager: IRepositoryManager
) : BaseModel(repositoryManager), RenevalMemberContract.Model {

    private val vipRechargeApi =
        repositoryManager.obtainRetrofitService(VipRechargeApi::class.java)


    override fun loadVipRecord(page: Int): Observable<CommonResponse<List<RechargeRecordVo>>> {
        return vipRechargeApi.loadVipRecord(page)
    }
}